<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        /* key:value */
        /* 1.声明一个json对象 */
        var li = {
            name:"李和申",
            age:18,
            live:["lol","唱歌","看电影"]
        }
        /* 2.如何获取object的值 
        .  在编程语言中表示的
        */
        var li_name = li.name;
        console.log(li_name)
        /* 3.给对象添加属性 */
        li.sex = "男"
        console.log(li)
    </script>
</body>
</html>